class Counter:
        def __serattr__(self, name, value):
            self.__dict__[name] = value
        def counter(self):
            return len(self.__dict__)
